package com.iplant.wms.serviceImpl.dao.mss;

import com.iplant.base.po.OutResult;
import com.iplant.base.po.Pagination;
import com.iplant.base.utils.annotation.dao.DBBaseDAO;
import com.iplant.base.utils.sql.BaseDAO;
import com.iplant.basic.service.po.bms.BMSEmployee;
import com.iplant.wms.service.po.mss.MSSMaterialStation;
import lombok.extern.slf4j.Slf4j;

import java.util.*;


@Slf4j
@DBBaseDAO(MSSMaterialStation.class)
public class MSSMaterialStationDAO extends BaseDAO {

    private static MSSMaterialStationDAO Instance = null;

    private MSSMaterialStationDAO() {
        super("");
        this.Init();
    }

    public static MSSMaterialStationDAO getInstance() {
        if (Instance == null)
            Instance = new MSSMaterialStationDAO();
        return Instance;
    }


    // 物料信息管理// 逻辑函数


    public List<MSSMaterialStation> MSS_QueryMaterialStationList(BMSEmployee wLoginUser, int wMaterialID, Pagination wPagination, OutResult<Integer> wErrorCode) {
        Map<String, Object> wParams = new HashMap<>();

        wParams.put("MaterialID", wMaterialID);

        return this.SelectPOList(wLoginUser, wParams, wPagination, wErrorCode);
    }




}
